pattern printing program